package com.snopy.concurrency.base;


import java.util.concurrent.LinkedTransferQueue;

/**
 * @author snopy
 * @version 1.0.0
 * @classname VolatilePrincipleTest
 * @description
 * @email 77912204@qq.com
 * @date 2022/02/19 22:23
 */

public class VolatilePrincipleTest {
    public volatile String a = "1";

    public static void main(String[] args) {
        VolatilePrincipleTest test = new VolatilePrincipleTest();
        test.test();
        LinkedTransferQueue ltq = new LinkedTransferQueue();
    }
    public  void test() {
        a = "2";

    }

}
